package com.heima.api.admin;

import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author feng js
 */
@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface ChannelControllerApi {
    /**
     * 频道分页 模糊查询
     * @param channelDto
     * @return
     */
    @ApiOperation(value = "频道分页查询")
    ResponseResult findChannelByNameAndPage(ChannelDto channelDto);

    /**
     * 频道新增
     * @param adChannel
     * @return
     */
    @ApiOperation(value = "频道新增")
    ResponseResult insert(AdChannel adChannel);

    /**
     * 频道修改
     * @param adChannel
     * @return
     */
    @ApiOperation(value = "频道修改")
    ResponseResult update(AdChannel adChannel);

    /**
     * 频道删除
     * @param id
     * @return
     */
    @ApiOperation(value = "频道删除")
    ResponseResult deleteById (Integer id);

    /**
     * 查询所有频道
     * @return
     */
    ResponseResult findAll();
}
